from flask import Flask

# 引入蓝图模块
from app.yolo_obb import obb_bp
from app.yolo_classify import classify_bp

#  声明一个服务app
app = Flask(__name__)

# 注册蓝图
app.register_blueprint(obb_bp, url_prefix='/obb')
app.register_blueprint(classify_bp, url_prefix='/classify')


@app.route('/')
def home():
    print("Request received")
    return "Hello, World!"


# 启动服务
if __name__ == "__main__":
    app.run(port=9501, host='0.0.0.0', debug=False, use_reloader=False)
